﻿// MT509




using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category5
{
  public class MT509 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagChoiceDefinition U0011;
    private static SwiftTagDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagSubItemDefinition U001E;
    private static SwiftTagSubItemDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagSubItemDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSequenceDefinition U0083;
    private static SwiftTagDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagChoiceDefinition U0087;
    private static SwiftTagDefinition U0088;
    private static SwiftTagSubItemDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagDefinition U008B;
    private static SwiftTagSubItemDefinition U008C;
    private static SwiftTagSubItemDefinition U008D;
    private static SwiftTagSubItemDefinition U008E;
    private static SwiftTagDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagSubItemDefinition U0091;
    private static SwiftTagDefinition U0092;
    private static SwiftTagSubItemDefinition U0093;
    private static SwiftTagSequenceDefinition U0094;
    private static SwiftTagDefinition U0095;
    private static SwiftTagSubItemDefinition U0096;
    private static SwiftTagDefinition U0097;
    private static SwiftTagSubItemDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagSubItemDefinition U009A;
    private static SwiftTagSequenceDefinition U009B;
    private static SwiftTagDefinition U009C;
    private static SwiftTagSubItemDefinition U009D;
    private static SwiftTagDefinition U009E;
    private static SwiftTagSubItemDefinition U009F;
    private static SwiftTagSubItemDefinition U0001U0002;
    private static SwiftTagSubItemDefinition U0002U0002;
    private static SwiftTagDefinition U0003U0002;
    private static SwiftTagSubItemDefinition U0004U0002;
    private static SwiftTagSubItemDefinition U0005U0002;
    private static SwiftTagDefinition U0006U0002;
    private static SwiftTagSubItemDefinition U0007U0002;
    private static SwiftTagDefinition U0008U0002;
    private static SwiftTagSubItemDefinition U000EU0002;
    private static SwiftTagDefinition U000FU0002;
    private static SwiftTagSubItemDefinition U0010U0002;
    private static SwiftTagSequenceDefinition U0011U0002;
    private static SwiftTagDefinition U0012U0002;
    private static SwiftTagSubItemDefinition U0013U0002;
    private static SwiftTagChoiceDefinition U0014U0002;
    private static SwiftTagDefinition U0015U0002;
    private static SwiftTagSubItemDefinition U0016U0002;
    private static SwiftTagSubItemDefinition U0017U0002;
    private static SwiftTagDefinition U0018U0002;
    private static SwiftTagSubItemDefinition U0019U0002;
    private static SwiftTagSubItemDefinition U001AU0002;
    private static SwiftTagSubItemDefinition U001BU0002;
    private static SwiftTagDefinition U001CU0002;
    private static SwiftTagSubItemDefinition U001DU0002;
    private static SwiftTagSubItemDefinition U001EU0002;
    private static SwiftTagSubItemDefinition U001FU0002;
    private static SwiftTagSubItemDefinition U007FU0002;
    private static SwiftTagDefinition U0080U0002;
    private static SwiftTagSubItemDefinition U0081U0002;
    private static SwiftTagSubItemDefinition U0082U0002;
    private static SwiftTagChoiceDefinition U0083U0002;
    private static SwiftTagDefinition U0084U0002;
    private static SwiftTagSubItemDefinition U0086U0002;
    private static SwiftTagSubItemDefinition U0087U0002;
    private static SwiftTagSubItemDefinition U0088U0002;
    private static SwiftTagDefinition U0089U0002;
    private static SwiftTagSubItemDefinition U008AU0002;
    private static SwiftTagSubItemDefinition U008BU0002;
    private static SwiftTagChoiceDefinition U008CU0002;
    private static SwiftTagDefinition U008DU0002;
    private static SwiftTagSubItemDefinition U008EU0002;
    private static SwiftTagSubItemDefinition U008FU0002;
    private static SwiftTagDefinition U0090U0002;
    private static SwiftTagSubItemDefinition U0091U0002;
    private static SwiftTagSubItemDefinition U0092U0002;
    private static SwiftTagSubItemDefinition U0093U0002;
    private static SwiftTagChoiceDefinition U0094U0002;
    private static SwiftTagDefinition U0095U0002;
    private static SwiftTagSubItemDefinition U0096U0002;
    private static SwiftTagSubItemDefinition U0097U0002;
    private static SwiftTagDefinition U0098U0002;
    private static SwiftTagSubItemDefinition U0099U0002;
    private static SwiftTagSubItemDefinition U009AU0002;
    private static SwiftTagSubItemDefinition U009BU0002;
    private static SwiftTagSubItemDefinition U009CU0002;
    private static SwiftTagSequenceDefinition U009DU0002;
    private static SwiftTagDefinition U009EU0002;
    private static SwiftTagSubItemDefinition U009FU0002;
    private static SwiftTagChoiceDefinition U0001U0003;
    private static SwiftTagDefinition U0002U0003;
    private static SwiftTagSubItemDefinition U0003U0003;
    private static SwiftTagSubItemDefinition U0004U0003;
    private static SwiftTagDefinition U0005U0003;
    private static SwiftTagSubItemDefinition U0006U0003;
    private static SwiftTagSubItemDefinition U0007U0003;
    private static SwiftTagDefinition U0008U0003;
    private static SwiftTagSubItemDefinition U000EU0003;
    private static SwiftTagSubItemDefinition U000FU0003;
    private static SwiftTagSubItemDefinition U0010U0003;
    private static SwiftTagDefinition U0011U0003;
    private static SwiftTagSubItemDefinition U0012U0003;
    private static SwiftTagSubItemDefinition U0013U0003;
    private static SwiftTagSubItemDefinition U0014U0003;
    private static SwiftTagSubItemDefinition U0015U0003;
    private static SwiftTagSubItemDefinition U0016U0003;
    private static SwiftTagChoiceDefinition U0017U0003;
    private static SwiftTagDefinition U0018U0003;
    private static SwiftTagSubItemDefinition U0019U0003;
    private static SwiftTagSubItemDefinition U001AU0003;
    private static SwiftTagDefinition U001BU0003;
    private static SwiftTagSubItemDefinition U001CU0003;
    private static SwiftTagSubItemDefinition U001DU0003;
    private static SwiftTagSubItemDefinition U001EU0003;
    private static SwiftTagSubItemDefinition U001FU0003;
    private static SwiftTagDefinition U007FU0003;
    private static SwiftTagSubItemDefinition U0080U0003;
    private static SwiftTagSubItemDefinition U0081U0003;
    private static SwiftTagChoiceDefinition U0082U0003;
    private static SwiftTagDefinition U0083U0003;
    private static SwiftTagSubItemDefinition U0084U0003;
    private static SwiftTagSubItemDefinition U0086U0003;
    private static SwiftTagDefinition U0087U0003;
    private static SwiftTagSubItemDefinition U0088U0003;
    private static SwiftTagSubItemDefinition U0089U0003;
    private static SwiftTagSubItemDefinition U008AU0003;
    private static SwiftTagSubItemDefinition U008BU0003;
    private static SwiftTagDefinition U008CU0003;
    private static SwiftTagSubItemDefinition U008DU0003;
    private static SwiftTagSubItemDefinition U008EU0003;
    private static SwiftTagChoiceDefinition U008FU0003;
    private static SwiftTagDefinition U0090U0003;
    private static SwiftTagSubItemDefinition U0091U0003;
    private static SwiftTagSubItemDefinition U0092U0003;
    private static SwiftTagDefinition U0093U0003;
    private static SwiftTagSubItemDefinition U0094U0003;
    private static SwiftTagSubItemDefinition U0095U0003;
    private static SwiftTagDefinition U0096U0003;
    private static SwiftTagSubItemDefinition U0097U0003;
    private static SwiftTagSubItemDefinition U0098U0003;
    private static SwiftTagSubItemDefinition U0099U0003;
    private static SwiftTagDefinition U009AU0003;
    private static SwiftTagSubItemDefinition U009BU0003;
    private static SwiftTagDefinition U009CU0003;
    private static SwiftTagSubItemDefinition U009DU0003;
    private static SwiftTagSubItemDefinition U009EU0003;
    private static SwiftTagDefinition U009FU0003;
    private static SwiftTagSubItemDefinition U0001U0004;
    private static SwiftTagSubItemDefinition U0002U0004;
    private static SwiftTagSubItemDefinition U0003U0004;
    private static SwiftTagSubItemDefinition U0004U0004;
    private static SwiftTagDefinition U0005U0004;
    private static SwiftTagSubItemDefinition U0006U0004;
    private static SwiftTagSubItemDefinition U0007U0004;
    private static SwiftTagSubItemDefinition U0008U0004;
    private static SwiftTagDefinition U000EU0004;
    private static SwiftTagSubItemDefinition U000FU0004;
    private static SwiftTagSequenceDefinition U0010U0004;
    private static SwiftTagDefinition U0011U0004;
    private static SwiftTagSubItemDefinition U0012U0004;
    private static SwiftTagChoiceDefinition U0013U0004;
    private static SwiftTagDefinition U0014U0004;
    private static SwiftTagSubItemDefinition U0015U0004;
    private static SwiftTagSubItemDefinition U0016U0004;
    private static SwiftTagDefinition U0017U0004;
    private static SwiftTagSubItemDefinition U0018U0004;
    private static SwiftTagSubItemDefinition U0019U0004;
    private static SwiftTagSubItemDefinition U001AU0004;
    private static SwiftTagDefinition U001BU0004;
    private static SwiftTagSubItemDefinition U001CU0004;
    private static SwiftTagSubItemDefinition U001DU0004;
    private static SwiftTagDefinition U001EU0004;
    private static SwiftTagSubItemDefinition U001FU0004;

    [Description("General Information")]
    public MT509.SequenceAClass SequenceA
    {
      get
      {
        return new MT509.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Trade Details")]
    public MT509.SequenceBClass SequenceB
    {
      get
      {
        MT509.SequenceBClass sequenceBclass = new MT509.SequenceBClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceBclass).Count > 0)
          return sequenceBclass;
        else
          return (MT509.SequenceBClass) null;
      }
    }

    [Description("Additional Information")]
    public MT509.SequenceCClass SequenceC
    {
      get
      {
        MT509.SequenceCClass sequenceCclass = new MT509.SequenceCClass((SwiftElement) this, 0, false);
        if (this.ListTags((SwiftElement) sequenceCclass).Count > 0)
          return sequenceCclass;
        else
          return (MT509.SequenceCClass) null;
      }
    }

    public MT509()
      : base(true)
    {
    }

    public MT509(SwiftMessage message)
      : base(message)
    {
    }

    public MT509.SequenceBClass AddSequenceB()
    {
      return this.SequenceB ?? new MT509.SequenceBClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceB(MT509.SequenceBClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT509.SequenceCClass AddSequenceC()
    {
      return this.SequenceC ?? new MT509.SequenceCClass((SwiftElement) this, 0, true);
    }

    public void RemoveSequenceC(MT509.SequenceCClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT509.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT509.MessageDefinition = new SwiftMessageDefinition("MT509", "Trade Status Message");
      MT509.U0002 = new SwiftTagSequenceDefinition("SequenceA", "General Information");
      MT509.U0003 = new SwiftTagDefinition("StartOfBlock_A_16R", "Start Of block");
      MT509.U0003.TagName = ":16R:GENL";
      MT509.U0004 = new SwiftTagSubItemDefinition("StartOfBlock", "Start Of block");
      MT509.U0004.Mandatory = false;
      MT509.U0003.Elements.Add((SwiftDefinitionElement) MT509.U0004);
      MT509.U0002.Elements.Add((SwiftDefinitionElement) MT509.U0003);
      MT509.U0005 = new SwiftTagDefinition("Reference_A_20C", "Sender’s Reference");
      MT509.U0005.TagName = ":20C::";
      MT509.U0006 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0005.Elements.Add((SwiftDefinitionElement) MT509.U0006);
      MT509.U0007 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT509.U0005.Elements.Add((SwiftDefinitionElement) MT509.U0007);
      MT509.U0002.Elements.Add((SwiftDefinitionElement) MT509.U0005);
      MT509.U0008 = new SwiftTagDefinition("FunctionOfTheMessage_A_23G", "Function of the Message");
      MT509.U0008.TagName = ":23G:";
      MT509.U000E = new SwiftTagSubItemDefinition("Function", "Function");
      MT509.U0008.Elements.Add((SwiftDefinitionElement) MT509.U000E);
      MT509.U000F = new SwiftTagSubItemDefinition("Subfunction", "Sub Function");
      MT509.U000F.Mandatory = false;
      MT509.U0010 = new SwiftTagSubItemDefinition("Subfunction_1", "SubFunction");
      MT509.U000F.Elements.Add((SwiftDefinitionElement) MT509.U0010);
      MT509.U0008.Elements.Add((SwiftDefinitionElement) MT509.U000F);
      MT509.U0002.Elements.Add((SwiftDefinitionElement) MT509.U0008);
      MT509.U0011 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0011.Mandatory = false;
      MT509.U0011.Multiple = true;
      MT509.U0012 = new SwiftTagDefinition("Date_A_98A", "Preparation Date Time");
      MT509.U0012.TagName = ":98A::";
      MT509.U0013 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0012.Elements.Add((SwiftDefinitionElement) MT509.U0013);
      MT509.U0014 = new SwiftTagSubItemDefinition("Date", "Date");
      MT509.U0012.Elements.Add((SwiftDefinitionElement) MT509.U0014);
      MT509.U0011.Elements.Add((SwiftDefinitionElement) MT509.U0012);
      MT509.U0015 = new SwiftTagDefinition("DateTime_A_98C", "Preparation Date Time");
      MT509.U0015.TagName = ":98C::";
      MT509.U0016 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0015.Elements.Add((SwiftDefinitionElement) MT509.U0016);
      MT509.U0017 = new SwiftTagSubItemDefinition("DateTime", "Preparation Date Time");
      MT509.U0018 = new SwiftTagSubItemDefinition("Date", "Date");
      MT509.U0017.Elements.Add((SwiftDefinitionElement) MT509.U0018);
      MT509.U0019 = new SwiftTagSubItemDefinition("Time", "Time");
      MT509.U0017.Elements.Add((SwiftDefinitionElement) MT509.U0019);
      MT509.U0015.Elements.Add((SwiftDefinitionElement) MT509.U0017);
      MT509.U0011.Elements.Add((SwiftDefinitionElement) MT509.U0015);
      MT509.U001A = new SwiftTagDefinition("DateTime_A_98E", "Trade Date/Time");
      MT509.U001A.TagName = ":98E::";
      MT509.U001B = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U001A.Elements.Add((SwiftDefinitionElement) MT509.U001B);
      MT509.U001C = new SwiftTagSubItemDefinition("DateTimeDecimalsAndUTCIndicator", "Trade Date/Time");
      MT509.U001D = new SwiftTagSubItemDefinition("DateTimeDecimals", "Trade Date/Time");
      MT509.U001E = new SwiftTagSubItemDefinition("DateTime", "Date\\Time");
      MT509.U001F = new SwiftTagSubItemDefinition("Date", "Date");
      MT509.U001E.Elements.Add((SwiftDefinitionElement) MT509.U001F);
      MT509.U007F = new SwiftTagSubItemDefinition("Time", "Time");
      MT509.U001E.Elements.Add((SwiftDefinitionElement) MT509.U007F);
      MT509.U001D.Elements.Add((SwiftDefinitionElement) MT509.U001E);
      MT509.U0080 = new SwiftTagSubItemDefinition("Decimals", "Time");
      MT509.U0080.Mandatory = false;
      MT509.U001D.Elements.Add((SwiftDefinitionElement) MT509.U0080);
      MT509.U001C.Elements.Add((SwiftDefinitionElement) MT509.U001D);
      MT509.U0081 = new SwiftTagSubItemDefinition("UTCIndicatorRecord", "Date\\Time");
      MT509.U0081.Mandatory = false;
      MT509.U0082 = new SwiftTagSubItemDefinition("UTCIndicator", "Indicator");
      MT509.U0081.Elements.Add((SwiftDefinitionElement) MT509.U0082);
      MT509.U001C.Elements.Add((SwiftDefinitionElement) MT509.U0081);
      MT509.U001A.Elements.Add((SwiftDefinitionElement) MT509.U001C);
      MT509.U0011.Elements.Add((SwiftDefinitionElement) MT509.U001A);
      MT509.U0002.Elements.Add((SwiftDefinitionElement) MT509.U0011);
      MT509.U0083 = new SwiftTagSequenceDefinition("SequenceA1", "Linkages");
      MT509.U0083.Mandatory = false;
      MT509.U0083.Multiple = true;
      MT509.U0084 = new SwiftTagDefinition("StartOfBlock_A1_16R", "Start Of Block");
      MT509.U0084.TagName = ":16R:LINK";
      MT509.U0086 = new SwiftTagSubItemDefinition("StartOfBlock", "Start Of Block");
      MT509.U0086.Mandatory = false;
      MT509.U0084.Elements.Add((SwiftDefinitionElement) MT509.U0086);
      MT509.U0083.Elements.Add((SwiftDefinitionElement) MT509.U0084);
      MT509.U0087 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0087.Mandatory = false;
      MT509.U0087.Multiple = true;
      MT509.U0088 = new SwiftTagDefinition("NumberIdentification_A1_13A", "Linked Message");
      MT509.U0088.TagName = ":13A::";
      MT509.U0089 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0088.Elements.Add((SwiftDefinitionElement) MT509.U0089);
      MT509.U008A = new SwiftTagSubItemDefinition("NumberId", "Number Id");
      MT509.U0088.Elements.Add((SwiftDefinitionElement) MT509.U008A);
      MT509.U0087.Elements.Add((SwiftDefinitionElement) MT509.U0088);
      MT509.U008B = new SwiftTagDefinition("NumberIdentification_A1_13B", "Linked Message");
      MT509.U008B.TagName = ":13B::";
      MT509.U008C = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U008B.Elements.Add((SwiftDefinitionElement) MT509.U008C);
      MT509.U008D = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT509.U008B.Elements.Add((SwiftDefinitionElement) MT509.U008D);
      MT509.U008E = new SwiftTagSubItemDefinition("Number_13B", "Number");
      MT509.U008B.Elements.Add((SwiftDefinitionElement) MT509.U008E);
      MT509.U0087.Elements.Add((SwiftDefinitionElement) MT509.U008B);
      MT509.U0083.Elements.Add((SwiftDefinitionElement) MT509.U0087);
      MT509.U008F = new SwiftTagDefinition("Reference_A1_20C", "Reference");
      MT509.U008F.TagName = ":20C::";
      MT509.U0090 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U008F.Elements.Add((SwiftDefinitionElement) MT509.U0090);
      MT509.U0091 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT509.U008F.Elements.Add((SwiftDefinitionElement) MT509.U0091);
      MT509.U0083.Elements.Add((SwiftDefinitionElement) MT509.U008F);
      MT509.U0092 = new SwiftTagDefinition("EndOfBlock_A1_16S", "End of Block");
      MT509.U0092.TagName = ":16S:LINK";
      MT509.U0093 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT509.U0093.Mandatory = false;
      MT509.U0092.Elements.Add((SwiftDefinitionElement) MT509.U0093);
      MT509.U0083.Elements.Add((SwiftDefinitionElement) MT509.U0092);
      MT509.U0002.Elements.Add((SwiftDefinitionElement) MT509.U0083);
      MT509.U0094 = new SwiftTagSequenceDefinition("SequenceA2", "Status");
      MT509.U0094.Multiple = true;
      MT509.U0095 = new SwiftTagDefinition("StartofBlock_A2_16R", "Start Of Block");
      MT509.U0095.TagName = ":16R:STAT";
      MT509.U0096 = new SwiftTagSubItemDefinition("StartOfBlock", "Start Of Block");
      MT509.U0096.Mandatory = false;
      MT509.U0095.Elements.Add((SwiftDefinitionElement) MT509.U0096);
      MT509.U0094.Elements.Add((SwiftDefinitionElement) MT509.U0095);
      MT509.U0097 = new SwiftTagDefinition("StatusCode_A2_25D", "Status Code");
      MT509.U0097.TagName = ":25D::";
      MT509.U0098 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0097.Elements.Add((SwiftDefinitionElement) MT509.U0098);
      MT509.U0099 = new SwiftTagSubItemDefinition("DataSource", "Data Source");
      MT509.U0097.Elements.Add((SwiftDefinitionElement) MT509.U0099);
      MT509.U009A = new SwiftTagSubItemDefinition("StatusCode", "Status Code");
      MT509.U0097.Elements.Add((SwiftDefinitionElement) MT509.U009A);
      MT509.U0094.Elements.Add((SwiftDefinitionElement) MT509.U0097);
      MT509.U009B = new SwiftTagSequenceDefinition("SequenceA2a", "Reason");
      MT509.U009B.Mandatory = false;
      MT509.U009B.Multiple = true;
      MT509.U009C = new SwiftTagDefinition("StartofBlock_A2a_16R", "Start Of Block");
      MT509.U009C.TagName = ":16R:REAS";
      MT509.U009D = new SwiftTagSubItemDefinition("StartOfBlock", "Start Of Block");
      MT509.U009D.Mandatory = false;
      MT509.U009C.Elements.Add((SwiftDefinitionElement) MT509.U009D);
      MT509.U009B.Elements.Add((SwiftDefinitionElement) MT509.U009C);
      MT509.U009E = new SwiftTagDefinition("ReasonCode_A2a_24B", "Reason Code");
      MT509.U009E.TagName = ":24B::";
      MT509.U009F = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U009E.Elements.Add((SwiftDefinitionElement) MT509.U009F);
      MT509.U0001U0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source");
      MT509.U009E.Elements.Add((SwiftDefinitionElement) MT509.U0001U0002);
      MT509.U0002U0002 = new SwiftTagSubItemDefinition("ReasonCode", "Reason Code");
      MT509.U009E.Elements.Add((SwiftDefinitionElement) MT509.U0002U0002);
      MT509.U009B.Elements.Add((SwiftDefinitionElement) MT509.U009E);
      MT509.U0003U0002 = new SwiftTagDefinition("Narrative_A2a_70D", "Reason Narrative");
      MT509.U0003U0002.TagName = ":70D::";
      MT509.U0003U0002.Mandatory = false;
      MT509.U0004U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0003U0002.Elements.Add((SwiftDefinitionElement) MT509.U0004U0002);
      MT509.U0005U0002 = new SwiftTagSubItemDefinition("Narrative", "Narrative");
      MT509.U0003U0002.Elements.Add((SwiftDefinitionElement) MT509.U0005U0002);
      MT509.U009B.Elements.Add((SwiftDefinitionElement) MT509.U0003U0002);
      MT509.U0006U0002 = new SwiftTagDefinition("EndOfBlock_A2a_16S", "End Of Block");
      MT509.U0006U0002.TagName = ":16S:REAS";
      MT509.U0007U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End Of Block");
      MT509.U0007U0002.Mandatory = false;
      MT509.U0006U0002.Elements.Add((SwiftDefinitionElement) MT509.U0007U0002);
      MT509.U009B.Elements.Add((SwiftDefinitionElement) MT509.U0006U0002);
      MT509.U0094.Elements.Add((SwiftDefinitionElement) MT509.U009B);
      MT509.U0008U0002 = new SwiftTagDefinition("EndOfBlock_A2_16S", "End Of Block");
      MT509.U0008U0002.TagName = ":16S:STAT";
      MT509.U000EU0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End Of Block");
      MT509.U000EU0002.Mandatory = false;
      MT509.U0008U0002.Elements.Add((SwiftDefinitionElement) MT509.U000EU0002);
      MT509.U0094.Elements.Add((SwiftDefinitionElement) MT509.U0008U0002);
      MT509.U0002.Elements.Add((SwiftDefinitionElement) MT509.U0094);
      MT509.U000FU0002 = new SwiftTagDefinition("EndOfBlock_A_16S", "End Of Block");
      MT509.U000FU0002.TagName = ":16S:GENL";
      MT509.U0010U0002 = new SwiftTagSubItemDefinition("EndOfBlock", "End Of Block");
      MT509.U0010U0002.Mandatory = false;
      MT509.U000FU0002.Elements.Add((SwiftDefinitionElement) MT509.U0010U0002);
      MT509.U0002.Elements.Add((SwiftDefinitionElement) MT509.U000FU0002);
      MT509.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT509.U0002);
      MT509.U0011U0002 = new SwiftTagSequenceDefinition("SequenceB", "Trade Details");
      MT509.U0011U0002.Mandatory = false;
      MT509.U0012U0002 = new SwiftTagDefinition("StartOfBlock_B_16R", "Start Of Block");
      MT509.U0012U0002.TagName = ":16R:TRADE";
      MT509.U0013U0002 = new SwiftTagSubItemDefinition("StartOfBlock", "Start Of Block");
      MT509.U0013U0002.Mandatory = false;
      MT509.U0012U0002.Elements.Add((SwiftDefinitionElement) MT509.U0013U0002);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U0012U0002);
      MT509.U0014U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0014U0002.Mandatory = false;
      MT509.U0014U0002.Multiple = true;
      MT509.U0015U0002 = new SwiftTagDefinition("Date_B_98A", "Date/Time");
      MT509.U0015U0002.TagName = ":98A::";
      MT509.U0015U0002.Multiple = true;
      MT509.U0016U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0015U0002.Elements.Add((SwiftDefinitionElement) MT509.U0016U0002);
      MT509.U0017U0002 = new SwiftTagSubItemDefinition("Date", "Date");
      MT509.U0015U0002.Elements.Add((SwiftDefinitionElement) MT509.U0017U0002);
      MT509.U0014U0002.Elements.Add((SwiftDefinitionElement) MT509.U0015U0002);
      MT509.U0018U0002 = new SwiftTagDefinition("DateCode_B_98B", "Date/Time");
      MT509.U0018U0002.TagName = ":98B::";
      MT509.U0018U0002.Multiple = true;
      MT509.U0019U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0018U0002.Elements.Add((SwiftDefinitionElement) MT509.U0019U0002);
      MT509.U001AU0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source");
      MT509.U0018U0002.Elements.Add((SwiftDefinitionElement) MT509.U001AU0002);
      MT509.U001BU0002 = new SwiftTagSubItemDefinition("DateCode", "Date Code");
      MT509.U0018U0002.Elements.Add((SwiftDefinitionElement) MT509.U001BU0002);
      MT509.U0014U0002.Elements.Add((SwiftDefinitionElement) MT509.U0018U0002);
      MT509.U001CU0002 = new SwiftTagDefinition("DateTime_B_98C", "Date/Time");
      MT509.U001CU0002.TagName = ":98C::";
      MT509.U001CU0002.Multiple = true;
      MT509.U001DU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U001CU0002.Elements.Add((SwiftDefinitionElement) MT509.U001DU0002);
      MT509.U001EU0002 = new SwiftTagSubItemDefinition("DateTime", "Date/Time");
      MT509.U001FU0002 = new SwiftTagSubItemDefinition("Date", "Date");
      MT509.U001EU0002.Elements.Add((SwiftDefinitionElement) MT509.U001FU0002);
      MT509.U007FU0002 = new SwiftTagSubItemDefinition("Time", "Time");
      MT509.U001EU0002.Elements.Add((SwiftDefinitionElement) MT509.U007FU0002);
      MT509.U001CU0002.Elements.Add((SwiftDefinitionElement) MT509.U001EU0002);
      MT509.U0014U0002.Elements.Add((SwiftDefinitionElement) MT509.U001CU0002);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U0014U0002);
      MT509.U0080U0002 = new SwiftTagDefinition("Currency_B_11A", "Currency");
      MT509.U0080U0002.TagName = ":11A::";
      MT509.U0080U0002.Mandatory = false;
      MT509.U0081U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0080U0002.Elements.Add((SwiftDefinitionElement) MT509.U0081U0002);
      MT509.U0082U0002 = new SwiftTagSubItemDefinition("CurrencyCode", "Currency Code");
      MT509.U0080U0002.Elements.Add((SwiftDefinitionElement) MT509.U0082U0002);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U0080U0002);
      MT509.U0083U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0083U0002.Multiple = true;
      MT509.U0084U0002 = new SwiftTagDefinition("Indicator_B_22F", "Indicator");
      MT509.U0084U0002.TagName = ":22F::";
      MT509.U0084U0002.Multiple = true;
      MT509.U0086U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0084U0002.Elements.Add((SwiftDefinitionElement) MT509.U0086U0002);
      MT509.U0087U0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source");
      MT509.U0084U0002.Elements.Add((SwiftDefinitionElement) MT509.U0087U0002);
      MT509.U0088U0002 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT509.U0084U0002.Elements.Add((SwiftDefinitionElement) MT509.U0088U0002);
      MT509.U0083U0002.Elements.Add((SwiftDefinitionElement) MT509.U0084U0002);
      MT509.U0089U0002 = new SwiftTagDefinition("Indicator_B_22H", "Indicator");
      MT509.U0089U0002.TagName = ":22H::";
      MT509.U0089U0002.Multiple = true;
      MT509.U008AU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0089U0002.Elements.Add((SwiftDefinitionElement) MT509.U008AU0002);
      MT509.U008BU0002 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT509.U0089U0002.Elements.Add((SwiftDefinitionElement) MT509.U008BU0002);
      MT509.U0083U0002.Elements.Add((SwiftDefinitionElement) MT509.U0089U0002);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U0083U0002);
      MT509.U008CU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U008CU0002.Mandatory = false;
      MT509.U008CU0002.Multiple = true;
      MT509.U008DU0002 = new SwiftTagDefinition("Party_B_95P", "Account Owner");
      MT509.U008DU0002.TagName = ":95P::";
      MT509.U008EU0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U008DU0002.Elements.Add((SwiftDefinitionElement) MT509.U008EU0002);
      MT509.U008FU0002 = new SwiftTagSubItemDefinition("BankIdentifier", "Bank Identifier Code");
      MT509.U008DU0002.Elements.Add((SwiftDefinitionElement) MT509.U008FU0002);
      MT509.U008CU0002.Elements.Add((SwiftDefinitionElement) MT509.U008DU0002);
      MT509.U0090U0002 = new SwiftTagDefinition("Party_B_95R", "Account Owner");
      MT509.U0090U0002.TagName = ":95R::";
      MT509.U0091U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0090U0002.Elements.Add((SwiftDefinitionElement) MT509.U0091U0002);
      MT509.U0092U0002 = new SwiftTagSubItemDefinition("DataSourceSchemeType", "Data Source Scheme with a maximum of 8 characters");
      MT509.U0090U0002.Elements.Add((SwiftDefinitionElement) MT509.U0092U0002);
      MT509.U0093U0002 = new SwiftTagSubItemDefinition("ProprietaryCodeType", "Proprietary Code Type");
      MT509.U0090U0002.Elements.Add((SwiftDefinitionElement) MT509.U0093U0002);
      MT509.U008CU0002.Elements.Add((SwiftDefinitionElement) MT509.U0090U0002);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U008CU0002);
      MT509.U0094U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0094U0002.Mandatory = false;
      MT509.U0094U0002.Multiple = true;
      MT509.U0095U0002 = new SwiftTagDefinition("Account_B_97A", "Account");
      MT509.U0095U0002.TagName = ":97A::";
      MT509.U0096U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0095U0002.Elements.Add((SwiftDefinitionElement) MT509.U0096U0002);
      MT509.U0097U0002 = new SwiftTagSubItemDefinition("AccountNumber", "Account Number");
      MT509.U0095U0002.Elements.Add((SwiftDefinitionElement) MT509.U0097U0002);
      MT509.U0094U0002.Elements.Add((SwiftDefinitionElement) MT509.U0095U0002);
      MT509.U0098U0002 = new SwiftTagDefinition("Account_B_97B", "Safekeeping Account");
      MT509.U0098U0002.TagName = ":97B::";
      MT509.U0099U0002 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0098U0002.Elements.Add((SwiftDefinitionElement) MT509.U0099U0002);
      MT509.U009AU0002 = new SwiftTagSubItemDefinition("DataSource", "Data Source");
      MT509.U0098U0002.Elements.Add((SwiftDefinitionElement) MT509.U009AU0002);
      MT509.U009BU0002 = new SwiftTagSubItemDefinition("AccountTypeCode", "Account Type Code");
      MT509.U0098U0002.Elements.Add((SwiftDefinitionElement) MT509.U009BU0002);
      MT509.U009CU0002 = new SwiftTagSubItemDefinition("AccountNumber", "Account Number");
      MT509.U0098U0002.Elements.Add((SwiftDefinitionElement) MT509.U009CU0002);
      MT509.U0094U0002.Elements.Add((SwiftDefinitionElement) MT509.U0098U0002);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U0094U0002);
      MT509.U009DU0002 = new SwiftTagSequenceDefinition("SequenceB1", "Trading Parties");
      MT509.U009DU0002.Mandatory = false;
      MT509.U009DU0002.Multiple = true;
      MT509.U009EU0002 = new SwiftTagDefinition("StartOfBlock_B1_16R", "Start Of Block");
      MT509.U009EU0002.TagName = ":16R:TRADPRTY";
      MT509.U009FU0002 = new SwiftTagSubItemDefinition("StartOfBlock", "Start Of Block");
      MT509.U009EU0002.Elements.Add((SwiftDefinitionElement) MT509.U009FU0002);
      MT509.U009DU0002.Elements.Add((SwiftDefinitionElement) MT509.U009EU0002);
      MT509.U0001U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0001U0003.Multiple = true;
      MT509.U0002U0003 = new SwiftTagDefinition("Party_B1_95P", "Account Owner");
      MT509.U0002U0003.TagName = ":95P::";
      MT509.U0002U0003.Multiple = true;
      MT509.U0003U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0002U0003.Elements.Add((SwiftDefinitionElement) MT509.U0003U0003);
      MT509.U0004U0003 = new SwiftTagSubItemDefinition("BankIdentifier", "Bank Identifier Code");
      MT509.U0002U0003.Elements.Add((SwiftDefinitionElement) MT509.U0004U0003);
      MT509.U0001U0003.Elements.Add((SwiftDefinitionElement) MT509.U0002U0003);
      MT509.U0005U0003 = new SwiftTagDefinition("Party_B1_95Q", "Account Owner");
      MT509.U0005U0003.TagName = ":95Q::";
      MT509.U0005U0003.Multiple = true;
      MT509.U0006U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0005U0003.Elements.Add((SwiftDefinitionElement) MT509.U0006U0003);
      MT509.U0007U0003 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT509.U0005U0003.Elements.Add((SwiftDefinitionElement) MT509.U0007U0003);
      MT509.U0001U0003.Elements.Add((SwiftDefinitionElement) MT509.U0005U0003);
      MT509.U0008U0003 = new SwiftTagDefinition("Party_B1_95R", "Account Owner");
      MT509.U0008U0003.TagName = ":95R::";
      MT509.U0008U0003.Multiple = true;
      MT509.U000EU0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0008U0003.Elements.Add((SwiftDefinitionElement) MT509.U000EU0003);
      MT509.U000FU0003 = new SwiftTagSubItemDefinition("DataSourceSchemeType", "Data Source Scheme with a maximum of 8 characters");
      MT509.U0008U0003.Elements.Add((SwiftDefinitionElement) MT509.U000FU0003);
      MT509.U0010U0003 = new SwiftTagSubItemDefinition("ProprietaryCodeType", "Proprietary Code Type");
      MT509.U0008U0003.Elements.Add((SwiftDefinitionElement) MT509.U0010U0003);
      MT509.U0001U0003.Elements.Add((SwiftDefinitionElement) MT509.U0008U0003);
      MT509.U0011U0003 = new SwiftTagDefinition("Party_B1_95S", "Account Owner");
      MT509.U0011U0003.TagName = ":95S::";
      MT509.U0011U0003.Multiple = true;
      MT509.U0012U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0011U0003.Elements.Add((SwiftDefinitionElement) MT509.U0012U0003);
      MT509.U0013U0003 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT509.U0011U0003.Elements.Add((SwiftDefinitionElement) MT509.U0013U0003);
      MT509.U0014U0003 = new SwiftTagSubItemDefinition("TypeOfID", "Type Of ID");
      MT509.U0011U0003.Elements.Add((SwiftDefinitionElement) MT509.U0014U0003);
      MT509.U0015U0003 = new SwiftTagSubItemDefinition("CountryCode", "Country Code");
      MT509.U0011U0003.Elements.Add((SwiftDefinitionElement) MT509.U0015U0003);
      MT509.U0016U0003 = new SwiftTagSubItemDefinition("AlternateID", "Alternate ID");
      MT509.U0011U0003.Elements.Add((SwiftDefinitionElement) MT509.U0016U0003);
      MT509.U0001U0003.Elements.Add((SwiftDefinitionElement) MT509.U0011U0003);
      MT509.U009DU0002.Elements.Add((SwiftDefinitionElement) MT509.U0001U0003);
      MT509.U0017U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0017U0003.Mandatory = false;
      MT509.U0017U0003.Multiple = true;
      MT509.U0018U0003 = new SwiftTagDefinition("Account_B1_97A", "Safekeeping Account");
      MT509.U0018U0003.TagName = ":97A::";
      MT509.U0018U0003.Multiple = true;
      MT509.U0019U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0018U0003.Elements.Add((SwiftDefinitionElement) MT509.U0019U0003);
      MT509.U001AU0003 = new SwiftTagSubItemDefinition("AccountNumber", "Account Number");
      MT509.U0018U0003.Elements.Add((SwiftDefinitionElement) MT509.U001AU0003);
      MT509.U0017U0003.Elements.Add((SwiftDefinitionElement) MT509.U0018U0003);
      MT509.U001BU0003 = new SwiftTagDefinition("Account_B1_97B", "Account");
      MT509.U001BU0003.TagName = ":97B::";
      MT509.U001BU0003.Multiple = true;
      MT509.U001CU0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U001BU0003.Elements.Add((SwiftDefinitionElement) MT509.U001CU0003);
      MT509.U001DU0003 = new SwiftTagSubItemDefinition("DataSource", "Data Source");
      MT509.U001BU0003.Elements.Add((SwiftDefinitionElement) MT509.U001DU0003);
      MT509.U001EU0003 = new SwiftTagSubItemDefinition("AccountTypeCode", "Account Type Code");
      MT509.U001BU0003.Elements.Add((SwiftDefinitionElement) MT509.U001EU0003);
      MT509.U001FU0003 = new SwiftTagSubItemDefinition("AccountNumber", "Account Number");
      MT509.U001BU0003.Elements.Add((SwiftDefinitionElement) MT509.U001FU0003);
      MT509.U0017U0003.Elements.Add((SwiftDefinitionElement) MT509.U001BU0003);
      MT509.U007FU0003 = new SwiftTagDefinition("Account_B1_97E", "Account");
      MT509.U007FU0003.TagName = ":97E::";
      MT509.U007FU0003.Multiple = true;
      MT509.U0080U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U007FU0003.Elements.Add((SwiftDefinitionElement) MT509.U0080U0003);
      MT509.U0081U0003 = new SwiftTagSubItemDefinition("InternationalBankAccountNumber", "International Bank Account Number");
      MT509.U007FU0003.Elements.Add((SwiftDefinitionElement) MT509.U0081U0003);
      MT509.U0017U0003.Elements.Add((SwiftDefinitionElement) MT509.U007FU0003);
      MT509.U009DU0002.Elements.Add((SwiftDefinitionElement) MT509.U0017U0003);
      MT509.U0082U0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0082U0003.Mandatory = false;
      MT509.U0082U0003.Multiple = true;
      MT509.U0083U0003 = new SwiftTagDefinition("Date_B1_98A", "Preparation Date Time");
      MT509.U0083U0003.TagName = ":98A::";
      MT509.U0084U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0083U0003.Elements.Add((SwiftDefinitionElement) MT509.U0084U0003);
      MT509.U0086U0003 = new SwiftTagSubItemDefinition("Date", "Date");
      MT509.U0083U0003.Elements.Add((SwiftDefinitionElement) MT509.U0086U0003);
      MT509.U0082U0003.Elements.Add((SwiftDefinitionElement) MT509.U0083U0003);
      MT509.U0087U0003 = new SwiftTagDefinition("DateTime_B1_98C", "Preparation Date Time");
      MT509.U0087U0003.TagName = ":98C::";
      MT509.U0088U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0087U0003.Elements.Add((SwiftDefinitionElement) MT509.U0088U0003);
      MT509.U0089U0003 = new SwiftTagSubItemDefinition("DateTime", "Preparation Date Time");
      MT509.U008AU0003 = new SwiftTagSubItemDefinition("Date", "Date");
      MT509.U0089U0003.Elements.Add((SwiftDefinitionElement) MT509.U008AU0003);
      MT509.U008BU0003 = new SwiftTagSubItemDefinition("Time", "Time");
      MT509.U0089U0003.Elements.Add((SwiftDefinitionElement) MT509.U008BU0003);
      MT509.U0087U0003.Elements.Add((SwiftDefinitionElement) MT509.U0089U0003);
      MT509.U0082U0003.Elements.Add((SwiftDefinitionElement) MT509.U0087U0003);
      MT509.U009DU0002.Elements.Add((SwiftDefinitionElement) MT509.U0082U0003);
      MT509.U008CU0003 = new SwiftTagDefinition("Reference_B1_20C", "Processing Reference");
      MT509.U008CU0003.TagName = ":20C::";
      MT509.U008CU0003.Mandatory = false;
      MT509.U008DU0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U008CU0003.Elements.Add((SwiftDefinitionElement) MT509.U008DU0003);
      MT509.U008EU0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT509.U008CU0003.Elements.Add((SwiftDefinitionElement) MT509.U008EU0003);
      MT509.U009DU0002.Elements.Add((SwiftDefinitionElement) MT509.U008CU0003);
      MT509.U008FU0003 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U008FU0003.Mandatory = false;
      MT509.U008FU0003.Multiple = true;
      MT509.U0090U0003 = new SwiftTagDefinition("Narrative_B1_70C", "Party Narrative");
      MT509.U0090U0003.TagName = ":70C::";
      MT509.U0090U0003.Multiple = true;
      MT509.U0091U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0090U0003.Elements.Add((SwiftDefinitionElement) MT509.U0091U0003);
      MT509.U0092U0003 = new SwiftTagSubItemDefinition("Narrative", "Narrative");
      MT509.U0090U0003.Elements.Add((SwiftDefinitionElement) MT509.U0092U0003);
      MT509.U008FU0003.Elements.Add((SwiftDefinitionElement) MT509.U0090U0003);
      MT509.U0093U0003 = new SwiftTagDefinition("Narrative_B1_70E", "Declaration Details Narrative");
      MT509.U0093U0003.TagName = ":70E::";
      MT509.U0093U0003.Multiple = true;
      MT509.U0094U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0093U0003.Elements.Add((SwiftDefinitionElement) MT509.U0094U0003);
      MT509.U0095U0003 = new SwiftTagSubItemDefinition("Narrative", "Narrative");
      MT509.U0093U0003.Elements.Add((SwiftDefinitionElement) MT509.U0095U0003);
      MT509.U008FU0003.Elements.Add((SwiftDefinitionElement) MT509.U0093U0003);
      MT509.U009DU0002.Elements.Add((SwiftDefinitionElement) MT509.U008FU0003);
      MT509.U0096U0003 = new SwiftTagDefinition("Indicator_B1_22F", "Party Capacity Indicator ");
      MT509.U0096U0003.TagName = ":22F::";
      MT509.U0096U0003.Mandatory = false;
      MT509.U0096U0003.Multiple = true;
      MT509.U0097U0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0096U0003.Elements.Add((SwiftDefinitionElement) MT509.U0097U0003);
      MT509.U0098U0003 = new SwiftTagSubItemDefinition("DataSource", "Data Source Scheme");
      MT509.U0096U0003.Elements.Add((SwiftDefinitionElement) MT509.U0098U0003);
      MT509.U0099U0003 = new SwiftTagSubItemDefinition("Indicator", "Indicator");
      MT509.U0096U0003.Elements.Add((SwiftDefinitionElement) MT509.U0099U0003);
      MT509.U009DU0002.Elements.Add((SwiftDefinitionElement) MT509.U0096U0003);
      MT509.U009AU0003 = new SwiftTagDefinition("EndOfBlock_B1_16S", "End Of Block");
      MT509.U009AU0003.TagName = ":16S:TRADPRTY";
      MT509.U009BU0003 = new SwiftTagSubItemDefinition("EndOfBlock", "End OF Block");
      MT509.U009BU0003.Mandatory = false;
      MT509.U009AU0003.Elements.Add((SwiftDefinitionElement) MT509.U009BU0003);
      MT509.U009DU0002.Elements.Add((SwiftDefinitionElement) MT509.U009AU0003);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U009DU0002);
      MT509.U009CU0003 = new SwiftTagDefinition("Amount_B_19A", "Amount");
      MT509.U009CU0003.TagName = ":19A::";
      MT509.U009CU0003.Mandatory = false;
      MT509.U009CU0003.Multiple = true;
      MT509.U009DU0003 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U009CU0003.Elements.Add((SwiftDefinitionElement) MT509.U009DU0003);
      MT509.U009EU0003 = new SwiftTagSubItemDefinition("SignCodeAmount", "Sign/CurrencyCode/Amount");
      MT509.U009CU0003.Elements.Add((SwiftDefinitionElement) MT509.U009EU0003);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U009CU0003);
      MT509.U009FU0003 = new SwiftTagDefinition("QuantityOfFinancialInstrument_B_36B", "Quantity of Financial Instrument");
      MT509.U009FU0003.TagName = ":36B::";
      MT509.U009FU0003.Mandatory = false;
      MT509.U009FU0003.Multiple = true;
      MT509.U0001U0004 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U009FU0003.Elements.Add((SwiftDefinitionElement) MT509.U0001U0004);
      MT509.U0002U0004 = new SwiftTagSubItemDefinition("QuantityOfFinancialInstrument", "Quantity of Financial Instrument");
      MT509.U0003U0004 = new SwiftTagSubItemDefinition("QuantityTypeCode", "Quantity Type Code");
      MT509.U0002U0004.Elements.Add((SwiftDefinitionElement) MT509.U0003U0004);
      MT509.U0004U0004 = new SwiftTagSubItemDefinition("Quantity", "Quantity");
      MT509.U0002U0004.Elements.Add((SwiftDefinitionElement) MT509.U0004U0004);
      MT509.U009FU0003.Elements.Add((SwiftDefinitionElement) MT509.U0002U0004);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U009FU0003);
      MT509.U0005U0004 = new SwiftTagDefinition("IdentificationOfFinancialInstrument_B_35B", "Identification of the Financial Instrument");
      MT509.U0005U0004.TagName = ":35B:";
      MT509.U0006U0004 = new SwiftTagSubItemDefinition("IdentificationOfSecurity", "Identification of Security");
      MT509.U0006U0004.Mandatory = false;
      MT509.U0007U0004 = new SwiftTagSubItemDefinition("IdentificationOfSecurity_1", "Identification of Security");
      MT509.U0006U0004.Elements.Add((SwiftDefinitionElement) MT509.U0007U0004);
      MT509.U0005U0004.Elements.Add((SwiftDefinitionElement) MT509.U0006U0004);
      MT509.U0008U0004 = new SwiftTagSubItemDefinition("DescriptionOfSecurity", "Description of Security");
      MT509.U0008U0004.Mandatory = false;
      MT509.U0005U0004.Elements.Add((SwiftDefinitionElement) MT509.U0008U0004);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U0005U0004);
      MT509.U000EU0004 = new SwiftTagDefinition("EndOfBlock_B_16S", "End of Block");
      MT509.U000EU0004.TagName = ":16S:TRADE";
      MT509.U000FU0004 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT509.U000FU0004.Mandatory = false;
      MT509.U000EU0004.Elements.Add((SwiftDefinitionElement) MT509.U000FU0004);
      MT509.U0011U0002.Elements.Add((SwiftDefinitionElement) MT509.U000EU0004);
      MT509.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT509.U0011U0002);
      MT509.U0010U0004 = new SwiftTagSequenceDefinition("SequenceC", "Additional Information");
      MT509.U0010U0004.Mandatory = false;
      MT509.U0011U0004 = new SwiftTagDefinition("StartOfBlock_C_16R", "Start of Block");
      MT509.U0011U0004.TagName = ":16R:ADDINFO";
      MT509.U0012U0004 = new SwiftTagSubItemDefinition("StartOfBlock", "Start of Block ");
      MT509.U0012U0004.Mandatory = false;
      MT509.U0011U0004.Elements.Add((SwiftDefinitionElement) MT509.U0012U0004);
      MT509.U0010U0004.Elements.Add((SwiftDefinitionElement) MT509.U0011U0004);
      MT509.U0013U0004 = new SwiftTagChoiceDefinition("Choice", "");
      MT509.U0013U0004.Mandatory = false;
      MT509.U0013U0004.Multiple = true;
      MT509.U0014U0004 = new SwiftTagDefinition("Party_C_95P", "Party");
      MT509.U0014U0004.TagName = ":95P::";
      MT509.U0014U0004.Multiple = true;
      MT509.U0015U0004 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0014U0004.Elements.Add((SwiftDefinitionElement) MT509.U0015U0004);
      MT509.U0016U0004 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT509.U0014U0004.Elements.Add((SwiftDefinitionElement) MT509.U0016U0004);
      MT509.U0013U0004.Elements.Add((SwiftDefinitionElement) MT509.U0014U0004);
      MT509.U0017U0004 = new SwiftTagDefinition("Party_C_95R", "Party");
      MT509.U0017U0004.TagName = ":95R::";
      MT509.U0017U0004.Multiple = true;
      MT509.U0018U0004 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U0017U0004.Elements.Add((SwiftDefinitionElement) MT509.U0018U0004);
      MT509.U0019U0004 = new SwiftTagSubItemDefinition("DataSourceScheme", "Data Source Scheme");
      MT509.U0017U0004.Elements.Add((SwiftDefinitionElement) MT509.U0019U0004);
      MT509.U001AU0004 = new SwiftTagSubItemDefinition("ProprietaryCode", "Proprietary Code");
      MT509.U0017U0004.Elements.Add((SwiftDefinitionElement) MT509.U001AU0004);
      MT509.U0013U0004.Elements.Add((SwiftDefinitionElement) MT509.U0017U0004);
      MT509.U001BU0004 = new SwiftTagDefinition("Party_C_95Q", "Party");
      MT509.U001BU0004.TagName = ":95Q::";
      MT509.U001BU0004.Multiple = true;
      MT509.U001CU0004 = new SwiftTagSubItemDefinition("Qualifier", "Qualifier");
      MT509.U001BU0004.Elements.Add((SwiftDefinitionElement) MT509.U001CU0004);
      MT509.U001DU0004 = new SwiftTagSubItemDefinition("NameAndAddress_95Q", "Name And Address");
      MT509.U001BU0004.Elements.Add((SwiftDefinitionElement) MT509.U001DU0004);
      MT509.U0013U0004.Elements.Add((SwiftDefinitionElement) MT509.U001BU0004);
      MT509.U0010U0004.Elements.Add((SwiftDefinitionElement) MT509.U0013U0004);
      MT509.U001EU0004 = new SwiftTagDefinition("EndOfBlock_C_16S", "End of Block");
      MT509.U001EU0004.TagName = ":16S:ADDINFO";
      MT509.U001FU0004 = new SwiftTagSubItemDefinition("EndOfBlock", "End of Block");
      MT509.U001FU0004.Mandatory = false;
      MT509.U001EU0004.Elements.Add((SwiftDefinitionElement) MT509.U001FU0004);
      MT509.U0010U0004.Elements.Add((SwiftDefinitionElement) MT509.U001EU0004);
      MT509.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT509.U0010U0004);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT509.U0002;
        }
      }

      [Description("Start Of block")]
      public Tag16R StartOfBlock_A_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0003);
        }
      }

      [Description("Start Of block")]
      public Tag16R Tag16R_StartOfBlock_A
      {
        get
        {
          return this.StartOfBlock_A_16R;
        }
      }

      [Description("Sender’s Reference")]
      public Tag20C Reference_A_20C
      {
        get
        {
          return new Tag20C((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0005);
        }
      }

      [Description("Sender’s Reference")]
      public Tag20C Tag20C_Reference_A
      {
        get
        {
          return this.Reference_A_20C;
        }
      }

      [Description("Function of the Message")]
      public Tag23G FunctionOfTheMessage_A_23G
      {
        get
        {
          return new Tag23G((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0008);
        }
      }

      [Description("Function of the Message")]
      public Tag23G Tag23G_FunctionOfTheMessage_A
      {
        get
        {
          return this.FunctionOfTheMessage_A_23G;
        }
      }

      [Description("Preparation Date Time")]
      public Tag98A Date_A_98A
      {
        get
        {
          return new Tag98A((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0012);
        }
      }

      [Description("Preparation Date Time")]
      public Tag98A Tag98A_Date_A
      {
        get
        {
          return this.Date_A_98A;
        }
      }

      [Description("Preparation Date Time")]
      public Tag98C DateTime_A_98C
      {
        get
        {
          return new Tag98C((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0015);
        }
      }

      [Description("Preparation Date Time")]
      public Tag98C Tag98C_DateTime_A
      {
        get
        {
          return this.DateTime_A_98C;
        }
      }

      [Description("Trade Date/Time")]
      public Tag98E DateTime_A_98E
      {
        get
        {
          return new Tag98E((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U001A);
        }
      }

      [Description("Trade Date/Time")]
      public Tag98E Tag98E_DateTime_A
      {
        get
        {
          return this.DateTime_A_98E;
        }
      }

      [Description("Linkages")]
      public MT509.SequenceAClass.SequenceA1Class[] SequenceA1
      {
        get
        {
          int index = -1;
          List<MT509.SequenceAClass.SequenceA1Class> list = new List<MT509.SequenceAClass.SequenceA1Class>();
          int count;
          do
          {
            ++index;
            MT509.SequenceAClass.SequenceA1Class sequenceA1Class = new MT509.SequenceAClass.SequenceA1Class((SwiftElement) this, index, false);
            count = this.ListTags((SwiftElement) sequenceA1Class).Count;
            if (count > 0)
              list.Add(sequenceA1Class);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Status")]
      public MT509.SequenceAClass.SequenceA2Class[] SequenceA2
      {
        get
        {
          int index = -1;
          List<MT509.SequenceAClass.SequenceA2Class> list = new List<MT509.SequenceAClass.SequenceA2Class>();
          int count;
          do
          {
            ++index;
            MT509.SequenceAClass.SequenceA2Class sequenceA2Class = new MT509.SequenceAClass.SequenceA2Class((SwiftElement) this, index, false);
            count = this.ListTags((SwiftElement) sequenceA2Class).Count;
            if (count > 0)
              list.Add(sequenceA2Class);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("End Of Block")]
      public Tag16S EndOfBlock_A_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U000FU0002);
        }
      }

      [Description("End Of Block")]
      public Tag16S Tag16S_EndOfBlock_A
      {
        get
        {
          return this.EndOfBlock_A_16S;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public MT509.SequenceAClass.SequenceA1Class AddSequenceA1()
      {
        return new MT509.SequenceAClass.SequenceA1Class((SwiftElement) this, this.SequenceA1.Length, true);
      }

      public void RemoveSequenceA1(MT509.SequenceAClass.SequenceA1Class sequence)
      {
        foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
          this.RemoveTag(tag);
      }

      public MT509.SequenceAClass.SequenceA2Class AddSequenceA2()
      {
        return new MT509.SequenceAClass.SequenceA2Class((SwiftElement) this, this.SequenceA2.Length, true);
      }

      public void RemoveSequenceA2(MT509.SequenceAClass.SequenceA2Class sequence)
      {
        foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
          this.RemoveTag(tag);
      }

      public class SequenceA1Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT509.U0083;
          }
        }

        [Description("Start Of Block")]
        public Tag16R StartOfBlock_A1_16R
        {
          get
          {
            return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0084);
          }
        }

        [Description("Start Of Block")]
        public Tag16R Tag16R_StartOfBlock_A1
        {
          get
          {
            return this.StartOfBlock_A1_16R;
          }
        }

        [Description("Linked Message")]
        public Tag13A NumberIdentification_A1_13A
        {
          get
          {
            return new Tag13A((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0088);
          }
        }

        [Description("Linked Message")]
        public Tag13A Tag13A_NumberIdentification_A1
        {
          get
          {
            return this.NumberIdentification_A1_13A;
          }
        }

        [Description("Linked Message")]
        public Tag13B NumberIdentification_A1_13B
        {
          get
          {
            return new Tag13B((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U008B);
          }
        }

        [Description("Linked Message")]
        public Tag13B Tag13B_NumberIdentification_A1
        {
          get
          {
            return this.NumberIdentification_A1_13B;
          }
        }

        [Description("Reference")]
        public Tag20C Reference_A1_20C
        {
          get
          {
            return new Tag20C((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U008F);
          }
        }

        [Description("Reference")]
        public Tag20C Tag20C_Reference_A1
        {
          get
          {
            return this.Reference_A1_20C;
          }
        }

        [Description("End of Block")]
        public Tag16S EndOfBlock_A1_16S
        {
          get
          {
            return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0092);
          }
        }

        [Description("End of Block")]
        public Tag16S Tag16S_EndOfBlock_A1
        {
          get
          {
            return this.EndOfBlock_A1_16S;
          }
        }

        internal SequenceA1Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }
      }

      public class SequenceA2Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT509.U0094;
          }
        }

        [Description("Start Of Block")]
        public Tag16R StartofBlock_A2_16R
        {
          get
          {
            return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0095);
          }
        }

        [Description("Start Of Block")]
        public Tag16R Tag16R_StartofBlock_A2
        {
          get
          {
            return this.StartofBlock_A2_16R;
          }
        }

        [Description("Status Code")]
        public Tag25D StatusCode_A2_25D
        {
          get
          {
            return new Tag25D((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0097);
          }
        }

        [Description("Status Code")]
        public Tag25D Tag25D_StatusCode_A2
        {
          get
          {
            return this.StatusCode_A2_25D;
          }
        }

        [Description("Reason")]
        public MT509.SequenceAClass.SequenceA2Class.SequenceA2aClass[] SequenceA2a
        {
          get
          {
            int index = -1;
            List<MT509.SequenceAClass.SequenceA2Class.SequenceA2aClass> list = new List<MT509.SequenceAClass.SequenceA2Class.SequenceA2aClass>();
            int count;
            do
            {
              ++index;
              MT509.SequenceAClass.SequenceA2Class.SequenceA2aClass sequenceA2aClass = new MT509.SequenceAClass.SequenceA2Class.SequenceA2aClass((SwiftElement) this, index, false);
              count = this.ListTags((SwiftElement) sequenceA2aClass).Count;
              if (count > 0)
                list.Add(sequenceA2aClass);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("End Of Block")]
        public Tag16S EndOfBlock_A2_16S
        {
          get
          {
            return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0008U0002);
          }
        }

        [Description("End Of Block")]
        public Tag16S Tag16S_EndOfBlock_A2
        {
          get
          {
            return this.EndOfBlock_A2_16S;
          }
        }

        internal SequenceA2Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }

        public MT509.SequenceAClass.SequenceA2Class.SequenceA2aClass AddSequenceA2a()
        {
          return new MT509.SequenceAClass.SequenceA2Class.SequenceA2aClass((SwiftElement) this, this.SequenceA2a.Length, true);
        }

        public void RemoveSequenceA2a(MT509.SequenceAClass.SequenceA2Class.SequenceA2aClass sequence)
        {
          foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
            this.RemoveTag(tag);
        }

        public class SequenceA2aClass : SwiftTagSequence
        {
          internal override SwiftDefinitionElement Definition
          {
            get
            {
              return (SwiftDefinitionElement) MT509.U009B;
            }
          }

          [Description("Start Of Block")]
          public Tag16R StartofBlock_A2a_16R
          {
            get
            {
              return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U009C);
            }
          }

          [Description("Start Of Block")]
          public Tag16R Tag16R_StartofBlock_A2a
          {
            get
            {
              return this.StartofBlock_A2a_16R;
            }
          }

          [Description("Reason Code")]
          public Tag24B ReasonCode_A2a_24B
          {
            get
            {
              return new Tag24B((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U009E);
            }
          }

          [Description("Reason Code")]
          public Tag24B Tag24B_ReasonCode_A2a
          {
            get
            {
              return this.ReasonCode_A2a_24B;
            }
          }

          [Description("Reason Narrative")]
          public Tag70D Narrative_A2a_70D
          {
            get
            {
              return new Tag70D((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0003U0002);
            }
          }

          [Description("Reason Narrative")]
          public Tag70D Tag70D_Narrative_A2a
          {
            get
            {
              return this.Narrative_A2a_70D;
            }
          }

          [Description("End Of Block")]
          public Tag16S EndOfBlock_A2a_16S
          {
            get
            {
              return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0006U0002);
            }
          }

          [Description("End Of Block")]
          public Tag16S Tag16S_EndOfBlock_A2a
          {
            get
            {
              return this.EndOfBlock_A2a_16S;
            }
          }

          internal SequenceA2aClass(SwiftElement parent, int index, bool createTags)
            : base(parent, index, createTags)
          {
          }
        }
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT509.U0011U0002;
        }
      }

      [Description("Start Of Block")]
      public Tag16R StartOfBlock_B_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0012U0002);
        }
      }

      [Description("Start Of Block")]
      public Tag16R Tag16R_StartOfBlock_B
      {
        get
        {
          return this.StartOfBlock_B_16R;
        }
      }

      [Description("Date/Time")]
      public Tag98A[] Date_B_98A
      {
        get
        {
          int index = -1;
          List<Tag98A> list = new List<Tag98A>();
          int count;
          do
          {
            ++index;
            Tag98A tag98A = new Tag98A((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0015U0002);
            count = this.ListTags((SwiftElement) tag98A).Count;
            if (count > 0)
              list.Add(tag98A);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Date/Time")]
      public Tag98A[] Tag98A_Date_B
      {
        get
        {
          return this.Date_B_98A;
        }
      }

      [Description("Date/Time")]
      public Tag98B[] DateCode_B_98B
      {
        get
        {
          int index = -1;
          List<Tag98B> list = new List<Tag98B>();
          int count;
          do
          {
            ++index;
            Tag98B tag98B = new Tag98B((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0018U0002);
            count = this.ListTags((SwiftElement) tag98B).Count;
            if (count > 0)
              list.Add(tag98B);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Date/Time")]
      public Tag98B[] Tag98B_DateCode_B
      {
        get
        {
          return this.DateCode_B_98B;
        }
      }

      [Description("Date/Time")]
      public Tag98C[] DateTime_B_98C
      {
        get
        {
          int index = -1;
          List<Tag98C> list = new List<Tag98C>();
          int count;
          do
          {
            ++index;
            Tag98C tag98C = new Tag98C((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U001CU0002);
            count = this.ListTags((SwiftElement) tag98C).Count;
            if (count > 0)
              list.Add(tag98C);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Date/Time")]
      public Tag98C[] Tag98C_DateTime_B
      {
        get
        {
          return this.DateTime_B_98C;
        }
      }

      [Description("Currency")]
      public Tag11A Currency_B_11A
      {
        get
        {
          return new Tag11A((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0080U0002);
        }
      }

      [Description("Currency")]
      public Tag11A Tag11A_Currency_B
      {
        get
        {
          return this.Currency_B_11A;
        }
      }

      [Description("Indicator")]
      public Tag22F[] Indicator_B_22F
      {
        get
        {
          int index = -1;
          List<Tag22F> list = new List<Tag22F>();
          int count;
          do
          {
            ++index;
            Tag22F tag22F = new Tag22F((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0084U0002);
            count = this.ListTags((SwiftElement) tag22F).Count;
            if (count > 0)
              list.Add(tag22F);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Indicator")]
      public Tag22F[] Tag22F_Indicator_B
      {
        get
        {
          return this.Indicator_B_22F;
        }
      }

      [Description("Indicator")]
      public Tag22H[] Indicator_B_22H
      {
        get
        {
          int index = -1;
          List<Tag22H> list = new List<Tag22H>();
          int count;
          do
          {
            ++index;
            Tag22H tag22H = new Tag22H((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0089U0002);
            count = this.ListTags((SwiftElement) tag22H).Count;
            if (count > 0)
              list.Add(tag22H);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Indicator")]
      public Tag22H[] Tag22H_Indicator_B
      {
        get
        {
          return this.Indicator_B_22H;
        }
      }

      [Description("Account Owner")]
      public MT509.SequenceBClass.Tag95P Party_B_95P
      {
        get
        {
          return new MT509.SequenceBClass.Tag95P((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U008DU0002);
        }
      }

      [Description("Account Owner")]
      public MT509.SequenceBClass.Tag95P Tag95P_Party_B
      {
        get
        {
          return this.Party_B_95P;
        }
      }

      [Description("Account Owner")]
      public MT509.SequenceBClass.Tag95R Party_B_95R
      {
        get
        {
          return new MT509.SequenceBClass.Tag95R((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0090U0002);
        }
      }

      [Description("Account Owner")]
      public MT509.SequenceBClass.Tag95R Tag95R_Party_B
      {
        get
        {
          return this.Party_B_95R;
        }
      }

      [Description("Account")]
      public Tag97A Account_B_97A
      {
        get
        {
          return new Tag97A((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0095U0002);
        }
      }

      [Description("Account")]
      public Tag97A Tag97A_Account_B
      {
        get
        {
          return this.Account_B_97A;
        }
      }

      [Description("Safekeeping Account")]
      public Tag97B Account_B_97B
      {
        get
        {
          return new Tag97B((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0098U0002);
        }
      }

      [Description("Safekeeping Account")]
      public Tag97B Tag97B_Account_B
      {
        get
        {
          return this.Account_B_97B;
        }
      }

      [Description("Trading Parties")]
      public MT509.SequenceBClass.SequenceB1Class[] SequenceB1
      {
        get
        {
          int index = -1;
          List<MT509.SequenceBClass.SequenceB1Class> list = new List<MT509.SequenceBClass.SequenceB1Class>();
          int count;
          do
          {
            ++index;
            MT509.SequenceBClass.SequenceB1Class sequenceB1Class = new MT509.SequenceBClass.SequenceB1Class((SwiftElement) this, index, false);
            count = this.ListTags((SwiftElement) sequenceB1Class).Count;
            if (count > 0)
              list.Add(sequenceB1Class);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Amount")]
      public Tag19A[] Amount_B_19A
      {
        get
        {
          int index = -1;
          List<Tag19A> list = new List<Tag19A>();
          int count;
          do
          {
            ++index;
            Tag19A tag19A = new Tag19A((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U009CU0003);
            count = this.ListTags((SwiftElement) tag19A).Count;
            if (count > 0)
              list.Add(tag19A);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Amount")]
      public Tag19A[] Tag19A_Amount_B
      {
        get
        {
          return this.Amount_B_19A;
        }
      }

      [Description("Quantity of Financial Instrument")]
      public Tag36B[] QuantityOfFinancialInstrument_B_36B
      {
        get
        {
          int index = -1;
          List<Tag36B> list = new List<Tag36B>();
          int count;
          do
          {
            ++index;
            Tag36B tag36B = new Tag36B((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U009FU0003);
            count = this.ListTags((SwiftElement) tag36B).Count;
            if (count > 0)
              list.Add(tag36B);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Quantity of Financial Instrument")]
      public Tag36B[] Tag36B_QuantityOfFinancialInstrument_B
      {
        get
        {
          return this.QuantityOfFinancialInstrument_B_36B;
        }
      }

      [Description("Identification of the Financial Instrument")]
      public Tag35B IdentificationOfFinancialInstrument_B_35B
      {
        get
        {
          return new Tag35B((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0005U0004);
        }
      }

      [Description("Identification of the Financial Instrument")]
      public Tag35B Tag35B_IdentificationOfFinancialInstrument_B
      {
        get
        {
          return this.IdentificationOfFinancialInstrument_B_35B;
        }
      }

      [Description("End of Block")]
      public Tag16S EndOfBlock_B_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U000EU0004);
        }
      }

      [Description("End of Block")]
      public Tag16S Tag16S_EndOfBlock_B
      {
        get
        {
          return this.EndOfBlock_B_16S;
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag98A AddDate_B_98A()
      {
        return new Tag98A((SwiftElement) this, this.Date_B_98A.Length, (SwiftDefinitionElement) MT509.U0015U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveDate_B_98A(Tag98A tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag98B AddDateCode_B_98B()
      {
        return new Tag98B((SwiftElement) this, this.DateCode_B_98B.Length, (SwiftDefinitionElement) MT509.U0018U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveDateCode_B_98B(Tag98B tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag98C AddDateTime_B_98C()
      {
        return new Tag98C((SwiftElement) this, this.DateTime_B_98C.Length, (SwiftDefinitionElement) MT509.U001CU0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveDateTime_B_98C(Tag98C tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag22F AddIndicator_B_22F()
      {
        return new Tag22F((SwiftElement) this, this.Indicator_B_22F.Length, (SwiftDefinitionElement) MT509.U0084U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveIndicator_B_22F(Tag22F tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag22H AddIndicator_B_22H()
      {
        return new Tag22H((SwiftElement) this, this.Indicator_B_22H.Length, (SwiftDefinitionElement) MT509.U0089U0002)
        {
          Value = string.Empty
        };
      }

      public void RemoveIndicator_B_22H(Tag22H tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public MT509.SequenceBClass.SequenceB1Class AddSequenceB1()
      {
        return new MT509.SequenceBClass.SequenceB1Class((SwiftElement) this, this.SequenceB1.Length, true);
      }

      public void RemoveSequenceB1(MT509.SequenceBClass.SequenceB1Class sequence)
      {
        foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
          this.RemoveTag(tag);
      }

      public Tag19A AddAmount_B_19A()
      {
        return new Tag19A((SwiftElement) this, this.Amount_B_19A.Length, (SwiftDefinitionElement) MT509.U009CU0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveAmount_B_19A(Tag19A tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag36B AddQuantityOfFinancialInstrument_B_36B()
      {
        return new Tag36B((SwiftElement) this, this.QuantityOfFinancialInstrument_B_36B.Length, (SwiftDefinitionElement) MT509.U009FU0003)
        {
          Value = string.Empty
        };
      }

      public void RemoveQuantityOfFinancialInstrument_B_36B(Tag36B tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public class Tag95P : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("95P", value);
          }
        }

        internal Tag95P(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag95R : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("95R", value);
          }
        }

        internal Tag95R(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class SequenceB1Class : SwiftTagSequence
      {
        internal override SwiftDefinitionElement Definition
        {
          get
          {
            return (SwiftDefinitionElement) MT509.U009DU0002;
          }
        }

        [Description("Start Of Block")]
        public Tag16R StartOfBlock_B1_16R
        {
          get
          {
            return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U009EU0002);
          }
        }

        [Description("Start Of Block")]
        public Tag16R Tag16R_StartOfBlock_B1
        {
          get
          {
            return this.StartOfBlock_B1_16R;
          }
        }

        [Description("Account Owner")]
        public MT509.SequenceBClass.SequenceB1Class.Tag95P[] Party_B1_95P
        {
          get
          {
            int index = -1;
            List<MT509.SequenceBClass.SequenceB1Class.Tag95P> list = new List<MT509.SequenceBClass.SequenceB1Class.Tag95P>();
            int count;
            do
            {
              ++index;
              MT509.SequenceBClass.SequenceB1Class.Tag95P tag95P = new MT509.SequenceBClass.SequenceB1Class.Tag95P((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0002U0003);
              count = this.ListTags((SwiftElement) tag95P).Count;
              if (count > 0)
                list.Add(tag95P);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Account Owner")]
        public MT509.SequenceBClass.SequenceB1Class.Tag95P[] Tag95P_Party_B1
        {
          get
          {
            return this.Party_B1_95P;
          }
        }

        [Description("Account Owner")]
        public MT509.SequenceBClass.SequenceB1Class.Tag95Q[] Party_B1_95Q
        {
          get
          {
            int index = -1;
            List<MT509.SequenceBClass.SequenceB1Class.Tag95Q> list = new List<MT509.SequenceBClass.SequenceB1Class.Tag95Q>();
            int count;
            do
            {
              ++index;
              MT509.SequenceBClass.SequenceB1Class.Tag95Q tag95Q = new MT509.SequenceBClass.SequenceB1Class.Tag95Q((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0005U0003);
              count = this.ListTags((SwiftElement) tag95Q).Count;
              if (count > 0)
                list.Add(tag95Q);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Account Owner")]
        public MT509.SequenceBClass.SequenceB1Class.Tag95Q[] Tag95Q_Party_B1
        {
          get
          {
            return this.Party_B1_95Q;
          }
        }

        [Description("Account Owner")]
        public MT509.SequenceBClass.SequenceB1Class.Tag95R[] Party_B1_95R
        {
          get
          {
            int index = -1;
            List<MT509.SequenceBClass.SequenceB1Class.Tag95R> list = new List<MT509.SequenceBClass.SequenceB1Class.Tag95R>();
            int count;
            do
            {
              ++index;
              MT509.SequenceBClass.SequenceB1Class.Tag95R tag95R = new MT509.SequenceBClass.SequenceB1Class.Tag95R((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0008U0003);
              count = this.ListTags((SwiftElement) tag95R).Count;
              if (count > 0)
                list.Add(tag95R);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Account Owner")]
        public MT509.SequenceBClass.SequenceB1Class.Tag95R[] Tag95R_Party_B1
        {
          get
          {
            return this.Party_B1_95R;
          }
        }

        [Description("Account Owner")]
        public MT509.SequenceBClass.SequenceB1Class.Tag95S[] Party_B1_95S
        {
          get
          {
            int index = -1;
            List<MT509.SequenceBClass.SequenceB1Class.Tag95S> list = new List<MT509.SequenceBClass.SequenceB1Class.Tag95S>();
            int count;
            do
            {
              ++index;
              MT509.SequenceBClass.SequenceB1Class.Tag95S tag95S = new MT509.SequenceBClass.SequenceB1Class.Tag95S((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0011U0003);
              count = this.ListTags((SwiftElement) tag95S).Count;
              if (count > 0)
                list.Add(tag95S);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Account Owner")]
        public MT509.SequenceBClass.SequenceB1Class.Tag95S[] Tag95S_Party_B1
        {
          get
          {
            return this.Party_B1_95S;
          }
        }

        [Description("Safekeeping Account")]
        public Tag97A[] Account_B1_97A
        {
          get
          {
            int index = -1;
            List<Tag97A> list = new List<Tag97A>();
            int count;
            do
            {
              ++index;
              Tag97A tag97A = new Tag97A((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0018U0003);
              count = this.ListTags((SwiftElement) tag97A).Count;
              if (count > 0)
                list.Add(tag97A);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Safekeeping Account")]
        public Tag97A[] Tag97A_Account_B1
        {
          get
          {
            return this.Account_B1_97A;
          }
        }

        [Description("Account")]
        public Tag97B[] Account_B1_97B
        {
          get
          {
            int index = -1;
            List<Tag97B> list = new List<Tag97B>();
            int count;
            do
            {
              ++index;
              Tag97B tag97B = new Tag97B((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U001BU0003);
              count = this.ListTags((SwiftElement) tag97B).Count;
              if (count > 0)
                list.Add(tag97B);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Account")]
        public Tag97B[] Tag97B_Account_B1
        {
          get
          {
            return this.Account_B1_97B;
          }
        }

        [Description("Account")]
        public Tag97E[] Account_B1_97E
        {
          get
          {
            int index = -1;
            List<Tag97E> list = new List<Tag97E>();
            int count;
            do
            {
              ++index;
              Tag97E tag97E = new Tag97E((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U007FU0003);
              count = this.ListTags((SwiftElement) tag97E).Count;
              if (count > 0)
                list.Add(tag97E);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Account")]
        public Tag97E[] Tag97E_Account_B1
        {
          get
          {
            return this.Account_B1_97E;
          }
        }

        [Description("Preparation Date Time")]
        public Tag98A Date_B1_98A
        {
          get
          {
            return new Tag98A((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0083U0003);
          }
        }

        [Description("Preparation Date Time")]
        public Tag98A Tag98A_Date_B1
        {
          get
          {
            return this.Date_B1_98A;
          }
        }

        [Description("Preparation Date Time")]
        public Tag98C DateTime_B1_98C
        {
          get
          {
            return new Tag98C((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0087U0003);
          }
        }

        [Description("Preparation Date Time")]
        public Tag98C Tag98C_DateTime_B1
        {
          get
          {
            return this.DateTime_B1_98C;
          }
        }

        [Description("Processing Reference")]
        public Tag20C Reference_B1_20C
        {
          get
          {
            return new Tag20C((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U008CU0003);
          }
        }

        [Description("Processing Reference")]
        public Tag20C Tag20C_Reference_B1
        {
          get
          {
            return this.Reference_B1_20C;
          }
        }

        [Description("Party Narrative")]
        public Tag70C[] Narrative_B1_70C
        {
          get
          {
            int index = -1;
            List<Tag70C> list = new List<Tag70C>();
            int count;
            do
            {
              ++index;
              Tag70C tag70C = new Tag70C((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0090U0003);
              count = this.ListTags((SwiftElement) tag70C).Count;
              if (count > 0)
                list.Add(tag70C);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Party Narrative")]
        public Tag70C[] Tag70C_Narrative_B1
        {
          get
          {
            return this.Narrative_B1_70C;
          }
        }

        [Description("Declaration Details Narrative")]
        public MT509.SequenceBClass.SequenceB1Class.Tag70E[] Narrative_B1_70E
        {
          get
          {
            int index = -1;
            List<MT509.SequenceBClass.SequenceB1Class.Tag70E> list = new List<MT509.SequenceBClass.SequenceB1Class.Tag70E>();
            int count;
            do
            {
              ++index;
              MT509.SequenceBClass.SequenceB1Class.Tag70E tag70E = new MT509.SequenceBClass.SequenceB1Class.Tag70E((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0093U0003);
              count = this.ListTags((SwiftElement) tag70E).Count;
              if (count > 0)
                list.Add(tag70E);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Declaration Details Narrative")]
        public MT509.SequenceBClass.SequenceB1Class.Tag70E[] Tag70E_Narrative_B1
        {
          get
          {
            return this.Narrative_B1_70E;
          }
        }

        [Description("Party Capacity Indicator ")]
        public Tag22F[] Indicator_B1_22F
        {
          get
          {
            int index = -1;
            List<Tag22F> list = new List<Tag22F>();
            int count;
            do
            {
              ++index;
              Tag22F tag22F = new Tag22F((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0096U0003);
              count = this.ListTags((SwiftElement) tag22F).Count;
              if (count > 0)
                list.Add(tag22F);
            }
            while (count > 0);
            return list.ToArray();
          }
        }

        [Description("Party Capacity Indicator ")]
        public Tag22F[] Tag22F_Indicator_B1
        {
          get
          {
            return this.Indicator_B1_22F;
          }
        }

        [Description("End Of Block")]
        public Tag16S EndOfBlock_B1_16S
        {
          get
          {
            return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U009AU0003);
          }
        }

        [Description("End Of Block")]
        public Tag16S Tag16S_EndOfBlock_B1
        {
          get
          {
            return this.EndOfBlock_B1_16S;
          }
        }

        internal SequenceB1Class(SwiftElement parent, int index, bool createTags)
          : base(parent, index, createTags)
        {
        }

        public MT509.SequenceBClass.SequenceB1Class.Tag95P AddParty_B1_95P()
        {
          return new MT509.SequenceBClass.SequenceB1Class.Tag95P((SwiftElement) this, this.Party_B1_95P.Length, (SwiftDefinitionElement) MT509.U0002U0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveParty_B1_95P(MT509.SequenceBClass.SequenceB1Class.Tag95P tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public MT509.SequenceBClass.SequenceB1Class.Tag95Q AddParty_B1_95Q()
        {
          return new MT509.SequenceBClass.SequenceB1Class.Tag95Q((SwiftElement) this, this.Party_B1_95Q.Length, (SwiftDefinitionElement) MT509.U0005U0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveParty_B1_95Q(MT509.SequenceBClass.SequenceB1Class.Tag95Q tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public MT509.SequenceBClass.SequenceB1Class.Tag95R AddParty_B1_95R()
        {
          return new MT509.SequenceBClass.SequenceB1Class.Tag95R((SwiftElement) this, this.Party_B1_95R.Length, (SwiftDefinitionElement) MT509.U0008U0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveParty_B1_95R(MT509.SequenceBClass.SequenceB1Class.Tag95R tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public MT509.SequenceBClass.SequenceB1Class.Tag95S AddParty_B1_95S()
        {
          return new MT509.SequenceBClass.SequenceB1Class.Tag95S((SwiftElement) this, this.Party_B1_95S.Length, (SwiftDefinitionElement) MT509.U0011U0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveParty_B1_95S(MT509.SequenceBClass.SequenceB1Class.Tag95S tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public Tag97A AddAccount_B1_97A()
        {
          return new Tag97A((SwiftElement) this, this.Account_B1_97A.Length, (SwiftDefinitionElement) MT509.U0018U0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveAccount_B1_97A(Tag97A tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public Tag97B AddAccount_B1_97B()
        {
          return new Tag97B((SwiftElement) this, this.Account_B1_97B.Length, (SwiftDefinitionElement) MT509.U001BU0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveAccount_B1_97B(Tag97B tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public Tag97E AddAccount_B1_97E()
        {
          return new Tag97E((SwiftElement) this, this.Account_B1_97E.Length, (SwiftDefinitionElement) MT509.U007FU0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveAccount_B1_97E(Tag97E tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public Tag70C AddNarrative_B1_70C()
        {
          return new Tag70C((SwiftElement) this, this.Narrative_B1_70C.Length, (SwiftDefinitionElement) MT509.U0090U0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveNarrative_B1_70C(Tag70C tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public MT509.SequenceBClass.SequenceB1Class.Tag70E AddNarrative_B1_70E()
        {
          return new MT509.SequenceBClass.SequenceB1Class.Tag70E((SwiftElement) this, this.Narrative_B1_70E.Length, (SwiftDefinitionElement) MT509.U0093U0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveNarrative_B1_70E(MT509.SequenceBClass.SequenceB1Class.Tag70E tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public Tag22F AddIndicator_B1_22F()
        {
          return new Tag22F((SwiftElement) this, this.Indicator_B1_22F.Length, (SwiftDefinitionElement) MT509.U0096U0003)
          {
            Value = string.Empty
          };
        }

        public void RemoveIndicator_B1_22F(Tag22F tag)
        {
          this.RemoveTag(tag.GetTag());
        }

        public class Tag95P : SwiftTagWrapper
        {
          public string Value
          {
            get
            {
              return this.GetValue();
            }
            set
            {
              this.SetValue("95P", value);
            }
          }

          internal Tag95P(SwiftElement parent, int index, SwiftDefinitionElement definition)
            : base(parent, index, definition)
          {
          }
        }

        public class Tag95Q : SwiftTagWrapper
        {
          public string Value
          {
            get
            {
              return this.GetValue();
            }
            set
            {
              this.SetValue("95Q", value);
            }
          }

          internal Tag95Q(SwiftElement parent, int index, SwiftDefinitionElement definition)
            : base(parent, index, definition)
          {
          }
        }

        public class Tag95R : SwiftTagWrapper
        {
          public string Value
          {
            get
            {
              return this.GetValue();
            }
            set
            {
              this.SetValue("95R", value);
            }
          }

          internal Tag95R(SwiftElement parent, int index, SwiftDefinitionElement definition)
            : base(parent, index, definition)
          {
          }
        }

        public class Tag95S : SwiftTagWrapper
        {
          public string Value
          {
            get
            {
              return this.GetValue();
            }
            set
            {
              this.SetValue("95S", value);
            }
          }

          internal Tag95S(SwiftElement parent, int index, SwiftDefinitionElement definition)
            : base(parent, index, definition)
          {
          }
        }

        public class Tag70E : SwiftTagWrapper
        {
          public string Value
          {
            get
            {
              return this.GetValue();
            }
            set
            {
              this.SetValue("70E", value);
            }
          }

          internal Tag70E(SwiftElement parent, int index, SwiftDefinitionElement definition)
            : base(parent, index, definition)
          {
          }
        }
      }
    }

    public class SequenceCClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT509.U0010U0004;
        }
      }

      [Description("Start of Block")]
      public Tag16R StartOfBlock_C_16R
      {
        get
        {
          return new Tag16R((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U0011U0004);
        }
      }

      [Description("Start of Block")]
      public Tag16R Tag16R_StartOfBlock_C
      {
        get
        {
          return this.StartOfBlock_C_16R;
        }
      }

      [Description("Party")]
      public Tag95P[] Party_C_95P
      {
        get
        {
          int index = -1;
          List<Tag95P> list = new List<Tag95P>();
          int count;
          do
          {
            ++index;
            Tag95P tag95P = new Tag95P((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0014U0004);
            count = this.ListTags((SwiftElement) tag95P).Count;
            if (count > 0)
              list.Add(tag95P);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95P[] Tag95P_Party_C
      {
        get
        {
          return this.Party_C_95P;
        }
      }

      [Description("Party")]
      public Tag95R[] Party_C_95R
      {
        get
        {
          int index = -1;
          List<Tag95R> list = new List<Tag95R>();
          int count;
          do
          {
            ++index;
            Tag95R tag95R = new Tag95R((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U0017U0004);
            count = this.ListTags((SwiftElement) tag95R).Count;
            if (count > 0)
              list.Add(tag95R);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95R[] Tag95R_Party_C
      {
        get
        {
          return this.Party_C_95R;
        }
      }

      [Description("Party")]
      public Tag95Q[] Party_C_95Q
      {
        get
        {
          int index = -1;
          List<Tag95Q> list = new List<Tag95Q>();
          int count;
          do
          {
            ++index;
            Tag95Q tag95Q = new Tag95Q((SwiftElement) this, index, (SwiftDefinitionElement) MT509.U001BU0004);
            count = this.ListTags((SwiftElement) tag95Q).Count;
            if (count > 0)
              list.Add(tag95Q);
          }
          while (count > 0);
          return list.ToArray();
        }
      }

      [Description("Party")]
      public Tag95Q[] Tag95Q_Party_C
      {
        get
        {
          return this.Party_C_95Q;
        }
      }

      [Description("End of Block")]
      public Tag16S EndOfBlock_C_16S
      {
        get
        {
          return new Tag16S((SwiftElement) this, 0, (SwiftDefinitionElement) MT509.U001EU0004);
        }
      }

      [Description("End of Block")]
      public Tag16S Tag16S_EndOfBlock_C
      {
        get
        {
          return this.EndOfBlock_C_16S;
        }
      }

      internal SequenceCClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public Tag95P AddParty_C_95P()
      {
        return new Tag95P((SwiftElement) this, this.Party_C_95P.Length, (SwiftDefinitionElement) MT509.U0014U0004)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_C_95P(Tag95P tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag95R AddParty_C_95R()
      {
        return new Tag95R((SwiftElement) this, this.Party_C_95R.Length, (SwiftDefinitionElement) MT509.U0017U0004)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_C_95R(Tag95R tag)
      {
        this.RemoveTag(tag.GetTag());
      }

      public Tag95Q AddParty_C_95Q()
      {
        return new Tag95Q((SwiftElement) this, this.Party_C_95Q.Length, (SwiftDefinitionElement) MT509.U001BU0004)
        {
          Value = string.Empty
        };
      }

      public void RemoveParty_C_95Q(Tag95Q tag)
      {
        this.RemoveTag(tag.GetTag());
      }
    }
  }
}
